package cn.bs.busuo.front.content.service;

import cn.bs.busuo.common.pojo.authentication.CurrentPrincipal;
import cn.bs.busuo.common.pojo.vo.PageData;
import cn.bs.busuo.front.content.pojo.param.SightArticleAddNewParam;
import cn.bs.busuo.front.content.pojo.param.SightArticleUpDateParam;
import cn.bs.busuo.front.content.pojo.vo.ContentSightArticleDetailByIdVO;
import cn.bs.busuo.front.content.pojo.vo.UserContentSightArticleByIdVO;
import cn.hutool.db.Page;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * @author: Feng
 * @since: 2023/12/8
 */
public interface UserSightArticleService {
    //添加景点文章
    void addNewSightArticle(CurrentPrincipal currentPrincipal, SightArticleAddNewParam sightArticleAddNewParam,Long id);
    //删除景点文章
    void deleteArticle(CurrentPrincipal currentPrincipal,Long id);
    //根据景点ID查看所有文章
    String selectSightArticleById(Long id);
    //查看文章详情
    ContentSightArticleDetailByIdVO selectSightArticleDetailById(Long id);
    //查看自己的景点文章
    String selectUserListSlightArticle(String authorName);
    //查看景点文章详情并好评
    void increaseUpCount(Long id);
    //查看景点文章详情并差评
    void increaseDownCount(Long id);
    //修改自己的景点文章
    void upDateSightArticle(String username, Long id, SightArticleUpDateParam sightArticleUpDateParam);
}
